package com.limao.dataEnum;

public enum PlatformEnum {
	
	android("android", 1),
	ios("ios", 2);
	
	private String stringValue;
	private int intVlue;

	private PlatformEnum(String stringValue) {
		this.stringValue = stringValue;
	}

	private PlatformEnum(int intVlue) {
		this.intVlue = intVlue;
	}

	private PlatformEnum(String stringValue, int intVlue) {
		this.stringValue = stringValue;
		this.intVlue = intVlue;
	}

	public String getStringValue() {
		return stringValue;
	}

	public int getIntValue() {
		return intVlue;
	}

	public static PlatformEnum getEnum(int i) {
		for (PlatformEnum c : PlatformEnum.values()) {
			if (c.getIntValue() == i) {
				return c;
			}
		}
		return null;
	} 
}
